package com.obas.type;

import com.ease.common.enums.EnumUtil;
import com.ease.common.enums.ValuableEnum;

public enum PortFeatureType implements ValuableEnum {

	EPON((short) 1, "Ethernet passive optical network (EPON)"), //
	GPON((short) 2, "Gigabit passive optical network. (GPON)"), //
	ETHERNET((short) 3, "Point-to-point Ethernet (P2P Eth)");

	private short value;
	private String description;

	private PortFeatureType(short value, String description) {
		this.value = value;
		this.description = description;
	}

	public static PortFeatureType get(short value) {
		return EnumUtil.get(PortFeatureType.class, value);
	}

	public static PortFeatureType get(String name) {
		return EnumUtil.get(PortFeatureType.class, name);
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	public String getName() {
		return name();
	}

	/**
	 * @return the text
	 */
	public short getValue() {
		return value;
	}
}
